package com.freemalll.merchant.mapper.coopManagement;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.freemalll.merchant.domain.entity.coopManagement.MerAssetManageDetail;
import com.freemalll.merchant.domain.vo.coopManagement.AssetManageDetailsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 映射层。
 *
 * @author songshixiong
 * @since 2025-04-29
 */
@Mapper
public interface MerAssetManagementDetailMapper extends BaseMapper<MerAssetManageDetail> {


    @Select(" select supporting_scenarios as supportingScenarios,cooperation_status as cooperationStatus,push_order_status as pushOrderStatus,daily_limit as dailyLimit,monthly_limit as monthlyLimit from mer_asset_manage_detail where delete_flag = 0 and source_id = #{sourceId} and enable_flag = 1")
    List<AssetManageDetailsVo> selectDetails(@Param("sourceId") String sourceId);
}
